import http from "./http";

const baseURL = "/m1/5232270-4899375-default";

export const getData = async (url: string) => {
    return await http.get(`${baseURL}${url}`);
  };


  // import axios from 'axios'

  // const instance = axios.create({
  //   baseURL: '', // ✅ 使用相对路径
  //   timeout: 5000,
  // })
  
  // export const getData = (url: string) => instance.get(url)
// export const createData = async (data: any) => {
//   return await http.post(`${bsetUrl}/create`, data);
// };

// export const updateData = async (id: string, data: any) => {
//   return await http.put(`${baseURL}/update/${id}`, data);
// };

// export const deleteData = async (id: string) => {
//   return await http.delete(`${bsetUrl}/delete/${id}`);
// };



// export const getDataById = async (id: string) => {
//   return await http.get(`${bsetUrl}/get/${id}`);
// };

// export const getForProject_id = async (project_id: string) => {
//   return await http.get(`${bsetUrl}/getForProject_id/${project_id}`);
// };
